package owg.util;
/**Provides a single-line mechanism to execute a method and verify that its output is true, e.g. 
 * <pre>Asserter.check(list.remove(e));</pre>
 * this differs from 
 * <pre>asssert list.remove(e);</pre>
 * in that the element is removed from the list even if assertions are turned off on the JVM.*/
public class Asserter
{
    public static void check(boolean b)
    {
	assert b;
    }
    public static void check(boolean b, String failMessage)
    {
	assert b : failMessage;
    }
}
